package com.seveneight.baijiesteward.views;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.flyco.animation.FlipEnter.FlipVerticalSwingEnter;
import com.flyco.dialog.widget.base.BottomBaseDialog;
import com.seveneight.baijiesteward.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by user1 on 2018/3/24.
 */

public class ShareBottomDialog extends BottomBaseDialog<ShareBottomDialog> {
    @BindView(R.id.iv_shareFriend)
    ImageView iv_shareFriend;
    @BindView(R.id.iv_shareMonment)
    ImageView iv_shareMonment;
    private  View.OnClickListener clickListener;

    public ShareBottomDialog(Context context, View.OnClickListener clickListener) {
        super(context);
        this.clickListener=clickListener;
    }

    public ShareBottomDialog(Context context) {
        super(context);
    }

    @Override
    public View onCreateView() {
        showAnim(new FlipVerticalSwingEnter());
        dismissAnim(null);
        View inflate = View.inflate(mContext, R.layout.dialog_share, null);
        ButterKnife.bind(this, inflate);

        return inflate;
    }

    @Override
    public void setUiBeforShow() {
        iv_shareFriend.setOnClickListener(clickListener);
        iv_shareMonment.setOnClickListener(clickListener);
    }
}
